<?php

	$router = Zend_Controller_Front::getInstance()->getRouter();

	$router->addRoute('post_note_list',
		new Zend_Controller_Router_Route('notes/*',
			array('module'=>'post', 'controller'=>'index', 'action'=>'list', 'post_class'=>'note',
				'widget_display_mode'=>'single'))
	);
	$router->addRoute('post_note_entry',
		new Zend_Controller_Router_Route('note/:post_id/*',
			array('module'=>'post', 'controller'=>'index', 'action'=>'view', 'post_class'=>'note'))
	);

	$router->addRoute('post_forum_list',
		new Zend_Controller_Router_Route('forums/*',
			array('module'=>'post', 'controller'=>'index', 'action'=>'list', 'post_class'=>'forum', 
				'widget_display_mode'=>'single'))
	);
	$router->addRoute('post_forum_entry',
		new Zend_Controller_Router_Route('forum/:post_id/*',
			array('module'=>'post', 'controller'=>'index', 'action'=>'view',
				'post_class'=>'forum'))
	);

	$router->addRoute('post_comment_new',
		new Zend_Controller_Router_Route('comment/new/*',
			array('module'=>'post', 'controller'=>'index', 'action'=>'index',
				'post_action'=>'new', 'post_class'=>'comment'))
	);

	$router->addRoute('post_wall_new',
		new Zend_Controller_Router_Route('wall/new/*',
			array('module'=>'post', 'controller'=>'index', 'action'=>'index',
				'post_action'=>'new', 'post_class'=>'wall'))
	);

	Euso_ObjectClass::register('post.note', 'Post_Model_Entry', NULL, 'post');
	Euso_ObjectClass::register('post.forum', 'Post_Model_Entry', NULL, 'post');
	Euso_ObjectClass::register('post.comment', 'Post_Model_Entry', NULL, 'post');
	Euso_ObjectClass::register('post.wall', 'Post_Model_Entry', NULL, 'post');
